import request from '@/utils/request'

// 查询传感器主题信息列表
export function listSensorsubject(query) {
  return request({
    url: '/snmp/sensorsubject/list',
    method: 'get',
    params: query
  })
}

// 查询传感器主题信息详细
export function getSensorsubject(id) {
  return request({
    url: '/snmp/sensorsubject/' + id,
    method: 'get'
  })
}

// 新增传感器主题信息
export function addSensorsubject(data) {
  return request({
    url: '/snmp/sensorsubject',
    method: 'post',
    data: data
  })
}

// 修改传感器主题信息
export function updateSensorsubject(data) {
  return request({
    url: '/snmp/sensorsubject',
    method: 'put',
    data: data
  })
}

// 删除传感器主题信息
export function delSensorsubject(id) {
  return request({
    url: '/snmp/sensorsubject/' + id,
    method: 'delete'
  })
}
